{% for secret in secrets %}
---
apiVersion: v1
kind: Secret
metadata:
  name: '{{ secrets[secret]['name'] }}'
  namespace: '{{ meta.namespace }}'
  labels:
    app.kubernetes.io/name: '{{ meta.name }}'
    app.kubernetes.io/part-of: '{{ meta.name }}'
    app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
    app.kubernetes.io/component: '{{ deployment_type }}'
    app.kubernetes.io/operator-version: '{{ lookup("env", "OPERATOR_VERSION") }}'
type: '{{ secrets[secret]['type'] }}'
stringData:
{% for key, value in secrets[secret]['data'].items() %}
  {{ key }}: |-
    {{ value | b64decode | indent(4) }}
{% endfor %}

{% endfor %}
